<!DOCTYPE html>




<html class="theme-next pisces" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
    
  
  <link href="https://cdn.bootcss.com/fancybox/2.1.5/jquery.fancybox.min.css" rel="stylesheet" type="text/css">




  
  
  
  

  

  

  

  

  

  
    

    
  

  
    
    
    <link href="//fonts.cat.net/css?family=Sigmar One:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






  

<link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" type="text/css">



  

<link href="https://cdn.bootcss.com/social-share.js/1.0.9/css/share.min.css" rel="stylesheet" type="text/css">

<link href="/moe/css/main.css?v=0.0.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/moe/images/apple-touch-icon-next.png?v=0.0.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/moe/images/favicon.png?v=0.0.4">


  <link rel="mask-icon" href="/moe/images/logo.svg?v=0.0.4" color="#222">





  <meta name="keywords" content="PostProcessing,">










<meta name="keywords" content="PostProcessing">
<meta property="og:type" content="article">
<meta property="og:title" content="美颜你的Unity--使用Lut为Unity调色">
<meta property="og:url" content="http://dumoedss.gitee.io/moe/Lut/index.html">
<meta property="og:site_name" content="伊莉伊莉雅">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8gtni8luj21kw0vz1ex.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8h0i09ylj20u01hctdr.jpg">
<meta property="og:image" content="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8i8ngpvgj20de0b7mxe.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8i7cpjk7j20i30hs40h.jpg">
<meta property="og:image" content="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8i7cewjkj20i30fitab.jpg">
<meta property="og:image" content="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8i7c3122j207m06ijre.jpg">
<meta property="og:image" content="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8i54ksrcj20qv0imgqi.jpg">
<meta property="og:image" content="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8knn8hhfj20nr0gagpd.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8kv0b3ftj20az065aa7.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8kr9lsmsj20ad0aswet.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8kyvhsaaj208f0r1myp.jpg">
<meta property="og:image" content="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8i550eh9j20pp0ilgsd.jpg">
<meta property="og:image" content="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8i5613b2j20i30at3z9.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8l36pr6ej207x0bx74g.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8l4tgyt7j207n021746.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8l6o8f0pj20gu0kkjs6.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8l8l7gunj20h20dv0ta.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8lb2nt68j208k02cwee.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8ma5i69oj20tk0gotz6.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8me209w4j20eq0gh0um.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8mi1ye8xj20f107kmxa.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8mi2aqqdj20fp0f7dkk.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8mi2ly6uj20iu0io0vt.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8me2adqqj20eh0bcwew.jpg">
<meta property="og:image" content="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8mki0c5nj20gd0b2gmf.jpg">
<meta property="og:image" content="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8mjnhvlzj208t0fymxg.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8mjnsd3uj20ol0iataw.jpg">
<meta property="og:image" content="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8mn18dopj20tk0goqud.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8ma5i69oj20tk0gotz6.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8mrhlqacj208y06jjri.jpg">
<meta property="og:image" content="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8mrhb3qej208z05s0ss.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8mute5kdj209k05a748.jpg">
<meta property="og:image" content="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8mzxexy0j20dn03qdfq.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8n4ek3lpj207h037glh.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8n5zifxrj20ub0httzo.jpg">
<meta property="og:image" content="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8no6wynlj21kw0w2wwj.jpg">
<meta property="og:image" content="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8no7v8r3j21kw0w0aqm.jpg">
<meta property="og:image" content="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8gtmwa2lj21kw0vzh3e.jpg">
<meta property="og:image" content="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8g1amzfsj21kw0vz7qi.jpg">
<meta property="og:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8gtni8luj21kw0vz1ex.jpg">
<meta property="og:updated_time" content="2017-12-31T04:15:59.272Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="美颜你的Unity--使用Lut为Unity调色">
<meta name="twitter:image" content="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8gtni8luj21kw0vz1ex.jpg">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/moe/',
    scheme: 'Pisces',
    version: '0.0.4',
    sidebar: {"position":"right","display":"always","offset":52,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":false,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    since: '12/31/2017 11:30:00',
    onlineAPI: '',
    site: {
      title: '伊莉伊莉雅',
      subtitle: '',
      author: '呆萌大森森'
    },
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    },
    leancloud: {
      enable: false,
      appID: '',
      appKey: ''
    },
    favicon: {
      visibilitychange: true,
      narmal: '/images/favicon.png',
      hidden: '/images/failure.ico',
      show_text: '(/≧▽≦/)咦！又好了！',
      hide_text: '(●—●)喔哟，崩溃啦！'
    }
  };
</script>



  
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/2.1.3/jquery.min.js"></script>




  <link rel="canonical" href="http://dumoedss.gitee.io/moe/Lut/">





  <title>美颜你的Unity--使用Lut为Unity调色 | 伊莉伊莉雅</title>
  




<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-48084758-7', 'auto');
  ga('send', 'pageview');
</script>





</head>

<body itemscope="" itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-right page-post-detail">
    <header id="header" class="header" itemscope="" itemtype="http://schema.org/WPHeader">
      <div class="header-inner">
<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-首页">
          <a href="/moe/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-分类">
          <a href="/moe/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-book"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-投档">
          <a href="/moe/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            投档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-留言板">
          <a href="/moe/message/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-pencil"></i> <br>
            
            留言板
          </a>
        </li>
      
        
        <li class="menu-item menu-item-关于">
          <a href="/moe/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-rocket"></i> <br>
            
            关于
          </a>
        </li>
      

      
      <li class="menu-item search">
          <form class="search-form">
            <input name="keyword" type="text" class="search-input" placeholder="站内搜索">
            <button type="submit" class="search-submit"><i class="fa fa-search"></i></button>
          </form>
      </li>
  
    </ul>
  

  
</nav>

<div class="site-brand-wrapper" style="background-image: url(/moe/images/Illya3.jpg)">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <div class="brand">
        <span class="logo-line-before"><i></i></span>
        <div class="site-title">
          <div id="animate" class="animate">
            <span>伊</span><span>莉</span><span>伊</span><span>莉</span><span>雅</span>
          </div>
          <div id="guide" class="guide">
            <span>伊</span><span>莉</span><span>伊</span><span>莉</span><span>雅</span>
          </div>
        </div>
        <span class="logo-line-after"><i></i></span>
      </div>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>
<div class="site-master" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
    <img class="site-master-avatar" itemprop="image" src="/moe/images/Takagi.jpg" alt="呆萌大森森">
    <h2 class="site-master-description" itemprop="description">
        萌就是正义
    </h2>
</div>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-date">
			<div class="post-month">12月</div>
			<div class="post-day">05</div>
	</div>
  
  <div class="post-badge">
    
      <span itemprop="about" itemscope="" itemtype="http://schema.org/Thing">
        <a href="/moe/categories/Unity/" itemprop="url" rel="index">
          <span itemprop="name">Unity</span>
        </a>
      </span>
    
  </div>
  

  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://dumoedss.gitee.io/moe/moe/Lut/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="呆萌大森森">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/moe/images/Takagi.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="伊莉伊莉雅">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">美颜你的Unity--使用Lut为Unity调色</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-12-05T21:40:43+08:00">
                2018-12-05
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">•</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope="" itemtype="http://schema.org/Thing">
                  <a href="/moe/categories/Unity/" itemprop="url" rel="index">
                    <span itemprop="name">Unity</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8gtni8luj21kw0vz1ex.jpg" alt=""></p>
<a id="more"></a>
<p><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8h0i09ylj20u01hctdr.jpg" alt=""><br>大家看了上面这张图片一定就明白本文的主题了，没错，今天的主题就是<del>带大家一起舔小圆</del><br>（╯‵□′）╯︵┴─┴<br>哈哈，不开玩笑了。上图展示了相机的一个常用的功能–滤镜，相信大家在用手机拍照的时候都用过滤镜吧，相机自带的滤镜可以一键调整照片色调，让我们不用专门学习相关的摄影知识就能拍出想要的效果，非常的方便与实用。今天要研究的内容就是在Unity里使用类似滤镜的功能，快速的调整场景的色调。<br>所需软件：Unity，PhotoShop<br><strong>注意：本文所研究的内容基于Unity最新的后期屏幕渲染特效-Post Processing Stack，该插件重构了Unity5.6之前版本的后期屏幕渲染特效-Image Effects，如果原有的项目中使用了旧的后期屏幕渲染特效（Image Effects），那么导入Post Processing Stack就会出现脚本冲突，请注意备份项目。</strong></p>
<p>—–这是没什么用的说明的分割线——-<br>通过在不同版本（5.6与5.6之前的版本）的Unity的Project面板上右键/导入Effects包，可以看得出Unity在5.6版本中已经移除了所有Image Effects相关的脚本，只留下了一个文档，打开文档可以看到官方推荐使用新的Post Processing Stack的说明，当然如果想使用旧版本的Image Effects也可以通过Asset Store免费下载。新版本的Post Processing Stack使用起来比之前的Image Effects要方便的多，之后我会抽时间写一写关于Post Processing Stack的文章，现在就先讲讲这个“滤镜”功能吧。<br><img src="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8i8ngpvgj20de0b7mxe.jpg" alt=""><br><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8i7cpjk7j20i30hs40h.jpg" alt="5.6之前的版本，带有Image Effect "> </p>
<p><img src="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8i7cewjkj20i30fitab.jpg" alt="5.6的版本，移除了Image Effect相关脚本"> </p>
<p><img src="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8i7c3122j207m06ijre.jpg" alt="官方对于组件更新的说明"> </p>
<p>———–这是萌萌哒的正文分割线———<br>首先，我们在Unity中打开Asset Store，搜索“Post Processing”，可以看到Post Processing Stack插件包。（另外可以从<a href="https://github.com/Unity-Technologies/PostProcessing" target="_blank" rel="noopener">GitHub</a>上下载。如果网络不好的话，也可以通过<a href="http://pan.baidu.com/s/1boT08YN" target="_blank" rel="noopener">百度云</a>进行下载，我会尽量跟着官方更新版本。）下载完成之后先别导入。<br><img src="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8i54ksrcj20qv0imgqi.jpg" alt=""><br>本文的示例场景是我从Asset Store上找的一个免费的环境包，大家可以下载这个环境包，也可以使用其他任意场景。</p>
<p>——如果使用其他场景，可以跳过下面这些操作——<br>打开Asset Store，搜索“Hong Kong”，可以下载到这个场景。（也可以通过<a href="http://pan.baidu.com/s/1hr7BK4O" target="_blank" rel="noopener">百度云</a>下载。）<br><img src="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8knn8hhfj20nr0gagpd.jpg" alt=""><br>导入这个环境包，根据提示升级API(点击Go Ahead!)<br><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8kv0b3ftj20az065aa7.jpg" alt=""><br>升级完成之后可以看到该场景使用的是旧版的Image Effects，删除以下两个文件夹：Assets/Unity Set Builder/Editor/Image Effects，Assets/Unity Set Builder/Standard Assets/Image Effects(Pro Only)<br><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8kr9lsmsj20ad0aswet.jpg" alt=""><br>打开Assets/Unity Set Builder/Set Builder文件夹下的Sample场景，找到场景中的Camera，将Camera上面的一些丢失的组件都删掉，这些丢失的组件就是刚才删除的Image Effects的后期屏幕渲染特效组件。<br><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8kyvhsaaj208f0r1myp.jpg" alt=""></p>
<p>接下来，导入Post Processing Stack插件包。<br><img src="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8i550eh9j20pp0ilgsd.jpg" alt=""><br><img src="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8i5613b2j20i30at3z9.jpg" alt=""><br>然后，找到场景中的Camera，为它添加一个Post-ProcessingBehaviour的脚本。<br><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8l36pr6ej207x0bx74g.jpg" alt=""><br>这个脚本只包含一个公共变量，那就是Post Processing的配置文件。<br><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8l4tgyt7j207n021746.jpg" alt=""><br>在Project面板下，创建一个Post-Processing Profile文件，随意命名即可。<br><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8l6o8f0pj20gu0kkjs6.jpg" alt=""><br>鼠标点选这个profile文件可以看得到，这个文件包含了所有的后期屏幕渲染特效的设置属性。之前的各种特效需要Image Effects的各种脚本来控制，现在的话只需要配置这一个profile文件就可以了。<br><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8l8l7gunj20h20dv0ta.jpg" alt=""><br>接着把这个profile文件拖到Camera上Post-ProcessingBehaviour脚本的Profile变量上。<br><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8lb2nt68j208k02cwee.jpg" alt=""><br>到这里为止，我们就做完了Unity的前置工作。<br>接下来让我们处理一下Lut。唔，这里简单的介绍下Lut，Lut其实就是一些调色的预设，可以理解为相机自带的各种滤镜，可以用在各种图形图像处理软件上，如Photoshop，After Effect等。我从网上找了一些Lut文件，下面会用得到。<a href="http://pan.baidu.com/s/1nv2sfKd" target="_blank" rel="noopener">下载</a>之后解压出来。<br>我们先在Unity中把当前的Game窗口截一下图，然后使用PhotoShop打开这张截图。<br><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8ma5i69oj20tk0gotz6.jpg" alt=""><br>接着从Photoshop的菜单中选择“图像/调整/颜色查找”，接着选择“载入3D Lut”，找到刚才下载的Lut的文件夹，任意选择一个Lut文件来查看效果。<br><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8me209w4j20eq0gh0um.jpg" alt=""><br><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8mi1ye8xj20f107kmxa.jpg" alt=""><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8mi2aqqdj20fp0f7dkk.jpg" alt=""><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8mi2ly6uj20iu0io0vt.jpg" alt=""></p>
<p>或者可以从面板的快捷菜单中选择“颜色查找”，然后“载入3D Lut”，和上面的效果其实是一样的。<br><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8me2adqqj20eh0bcwew.jpg" alt=""><br><img src="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8mki0c5nj20gd0b2gmf.jpg" alt=""><br><img src="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8mjnhvlzj208t0fymxg.jpg" alt=""><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8mjnsd3uj20ol0iataw.jpg" alt=""></p>
<p>这里我选择了“DELUTS_CLOG3_Look_01.cube”，对比一下可以看出与之前的截图有明显的区别。<br><img src="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8mn18dopj20tk0goqud.jpg" alt=""><br><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8ma5i69oj20tk0gotz6.jpg" alt=""><br>大家可以再尝试更换其他的Lut文件来选择自己想要的色调。<br>另外也可以添加多个Lut文件，并且调整每个Lut的不透明度，以此获得单个Lut所没有的效果。<br><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8mrhlqacj208y06jjri.jpg" alt=""><img src="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8mrhb3qej208z05s0ss.jpg" alt="img"><br>当截图的效果满足需求之后，记下当前使用的Lut文件，稍后会用到。<br>接下来就需要制作Unity中使用的Lut贴图了，首先回到Unity中，在Project面板里找到贴图Assets/PostProcessing/Textures/LUTs/NeutralLUT_32.png，把它复制一份，使用PhotoShop打开。<br><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8mute5kdj209k05a748.jpg" alt=""><br>然后按照前面的步骤，为这张图片添加最终效果的Lut文件。<br><img src="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8mzxexy0j20dn03qdfq.jpg" alt=""><br>添加完成之后，另存为Lut.png文件，导入Unity中。<br>接着选中之前创建的Post Processing Profile文件，勾选“User Lut”选项，并把刚才导入的Lut.png拖到Lut上，可以看到一个错误提示，这是因为需要对图片格式进行设置，这里点击Fix按钮，Unity会自动设置贴图格式。现在就可以在Game窗口中看到最终效果了，是不是和Photoshop中的一样呢？<br><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8n4ek3lpj207h037glh.jpg" alt=""><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8n5zifxrj20ub0httzo.jpg" alt=""><br>运行之后，可以四处走动观察下效果，由于此次主要讲解Lut的内容，所以没有对灯光及其他后期屏幕渲染特效进行处理，场景整体看着会有些偏暗。<br>以上就是为Unity添加“美颜滤镜”的全部过程了，最后扔几张效果图来结尾吧。<br><img src="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8no6wynlj21kw0w2wwj.jpg" alt=""></p>
<p><img src="http://wx3.sinaimg.cn/mw690/bcd85caely1fg8no7v8r3j21kw0w0aqm.jpg" alt=""></p>
<p><img src="http://wx1.sinaimg.cn/mw690/bcd85caely1fg8gtmwa2lj21kw0vzh3e.jpg" alt=""></p>
<p><img src="http://wx4.sinaimg.cn/mw690/bcd85caely1fg8g1amzfsj21kw0vz7qi.jpg" alt=""></p>
<p><img src="http://wx2.sinaimg.cn/mw690/bcd85caely1fg8gtni8luj21kw0vz1ex.jpg" alt=""></p>

      
    </div>
    
    
    

    

    
      <div class="post-share">分享到：</div>
    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div></div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>赞赏</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="/images/wechatpay.png" alt="呆萌大森森 微信扫一扫，向我赞赏">
        <p>微信扫一扫，向我赞赏</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="/images/alipay.jpg" alt="呆萌大森森 支付宝扫一扫，向我赞赏">
        <p>支付宝扫一扫，向我赞赏</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/moe/tags/PostProcessing/" rel="tag"># PostProcessing</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/moe/Hexo/" rel="next" title="Hello Hexo">
                <i class="fa fa-chevron-left"></i> Hello Hexo
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
          </div>
        </div>
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="disqus_thread">
        <div class="disqus-loading">
          <strong>Disqus 加载中...</strong>
          <p>如果长时间无法加载，请针对 disq.us | disquscdn.com | disqus.com 启用代理</p>
        </div>
      </div>
    </div>

  





  

    
      <script type="text/javascript">
        if (disqus_config) {
          var disqus_config = function () {
            this.page.url = 'http://dumoedss.gitee.io/moe/Lut/';
            this.page.identifier = 'Lut/';
            this.page.title = '美颜你的Unity--使用Lut为Unity调色';
          };
          if (window.DISQUS) {
            $('.disqus-loading').remove();
            window.DISQUS.reset({
              reload: true,
              config: function () {
                this.page.url = 'http://dumoedss.gitee.io/moe/Lut/';
                this.page.identifier = 'Lut/';
                this.page.title = '美颜你的Unity--使用Lut为Unity调色';
              }
            });
          }
        }
        else {
          var disqus_config = function () {
            this.page.url = 'http://dumoedss.gitee.io/moe/Lut/';
            this.page.identifier = 'Lut/';
            this.page.title = '美颜你的Unity--使用Lut为Unity调色';
          };
          var d = document, s = d.createElement('script');
          s.src = 'https://dumoedss.disqus.com/embed.js';
          s.setAttribute('data-timestamp', '' + +new Date());
          (d.head || d.body).appendChild(s);
        }
      </script>
    

  




	





  















        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      

      <section class="site-overview-wrap sidebar-panel sidebar-panel-active">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/moe/images/err.gif" alt="呆萌大森森">
            
              <p class="site-author-name" itemprop="name">呆萌<span style="opacity:.2;">大森森</span></p>
              <p class="site-description motion-element" itemprop="description">我梨敲可爱~</p>
          </div>

          <div class="links-of-author motion-element">
            
              
                <span class="links-of-author-item">
                  <a href="https://github.com/DumoeDss" target="_blank" title="GitHub" data-balloon="GitHub" data-balloon-pos="up">
                    
                      <i class="fa fa-fw fa-github"></i></a>
                </span>
              
                <span class="links-of-author-item">
                  <a href="mailto:<ws11579@gmail.com>" target="_blank" title="Email" data-balloon="Email" data-balloon-pos="up">
                    
                      <i class="fa fa-fw fa-envelope"></i></a>
                </span>
              
                <span class="links-of-author-item">
                  <a href="/images/qq-g.jpg" target="_blank" title="QQ" data-balloon="QQ" data-balloon-pos="up">
                    
                      <i class="fa fa-fw fa-qq"></i></a>
                </span>
              
                <span class="links-of-author-item">
                  <a href="https://dumoedss.cc" target="_blank" title="更多" data-balloon="更多" data-balloon-pos="up">
                    
                      <i class="fa fa-fw fa-more"></i></a>
                </span>
              
            
          </div>

          

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/moe/archives">
              
                  <span class="site-state-item-count">5</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/moe/categories/index.html">
                  <span class="site-state-item-count">4</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            
            

          </nav>

          
          
            <div class="cc-license motion-element" itemprop="license">
              <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" class="cc-opacity" target="_blank">
                <img src="/moe/images/cc-by-nc-sa.png" alt="Creative Commons">
              </a>
            </div>
          

          
          

          

        </div>
      </section>

      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-image"></div>
      <div class="footer-inner">
        <p>博客已萌萌哒运行<span id="since"></span><span class="my-face">(●'◡'●)ﾉ♥</span></p>
<p>custom text</p>

<p>© <span itemprop="copyrightYear">2018</span> 伊莉伊莉雅.
    由 <a href="https://hexo.io/" target="_blank" class="external" rel="nofollow">Hexo</a> 强力驱动.
    Theme By <a href="https://github.com/DIYgod/hexo-theme-sagiri" target="_blank" class="external" rel="nofollow">Sagiri</a> v0.0.4.
    <a href="/moe/sitemap.xml" target="_blank">站点地图</a>.
    xxxx.
</p>
<p>Made with <i class="fa fa-heart throb" style="color: #d43f57;"></i> by <span class="author" itemprop="copyrightHolder">呆萌大森森</span>. </p>

        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    <canvas id="evanyou"></canvas>
  
    

  </div>
    
	
<div id="hexo-helper-live2d">
  <canvas id="live2dcanvas" width="300" height="500"></canvas>
</div>
<style>
  #live2dcanvas{
    position: fixed;
    width: 300px;
    height: 500px;
    opacity:0.9;
    right: 250px;
    z-index: 999;
    pointer-events: none;
    bottom: -20px;
  }
</style>
<script type="text/javascript" src="/live2d/device.min.js"></script>
<script type="text/javascript">
const loadScript = function loadScript(c,b){var a=document.createElement("script");a.type="text/javascript";"undefined"!=typeof b&&(a.readyState?a.onreadystatechange=function(){if("loaded"==a.readyState||"complete"==a.readyState)a.onreadystatechange=null,b()}:a.onload=function(){b()});a.src=c;document.body.appendChild(a)};
(function(){
  if((typeof(device) != 'undefined') && (device.mobile())){
    document.getElementById("live2dcanvas").style.width = '150px';
    document.getElementById("live2dcanvas").style.height = '250px';
  }else
    if (typeof(device) === 'undefined') console.error('Cannot find current-device script.');
  loadScript("/live2d/script.js", function(){loadlive2d("live2dcanvas", "/live2d/assets/unitychan.model.json", 0.5);});
})();
</script>

  <script type="text/javascript" src="/moe/js/sagiri.min.js?v=0.0.4"></script>

  





  

  
  

  

  

  


  <script>
    var serviceWorkerUri = '/sw.js';
    if ('serviceWorker' in navigator) {
        navigator.serviceWorker.register(serviceWorkerUri).then(function() {
          if (navigator.serviceWorker.controller) {
            console.log('Assets cached by the controlling service worker.');
          } else {
            console.log('Please reload this page to allow the service worker to handle network operations.');
          }
        }).catch(function(error) {
          console.log('ERROR: ' + error);
        });
    } else {
        console.log('Service workers are not supported in the current browser.');
    }
  </script>
</body>
</html>
